package com.example.demo.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@Schema(description = "日志查询参数")
public class LogQuery extends PageQuery{

    @Schema(description = "日志内容")
    private String keywords;
    @Schema(description = "日志查询时间范围")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private List<Date> createTime;
}
